﻿using System;
using System.Collections.Generic;

namespace Beefly.Json.Meta;

public static class JsonMeta
{
    private static Dictionary<Type, IJsonFormat> formatMap = new();

    private static Dictionary<int, Dictionary<Type, IJsonFormat>> arrayFormatMap = new();
    
    internal static IJsonFormat GetArrayFormat<T>(int rank)
    {
        var type = typeof(T);
        if (!arrayFormatMap.TryGetValue(rank, out var map))
        {
            
        }

        if (!map.ContainsKey(type))
        {
            
        }


        return default;
    }

    internal static IJsonFormat GetFormat(string name)
    {
        return default;
    }
    
    internal static IJsonFormat GetFormat(Type type)
    {
        return default;
    }
}